package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysAppInfoCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysAppInfoCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAppinfoidIsNull() {
            addCriterion("AppinfoID is null");
            return (Criteria) this;
        }

        public Criteria andAppinfoidIsNotNull() {
            addCriterion("AppinfoID is not null");
            return (Criteria) this;
        }

        public Criteria andAppinfoidEqualTo(Long value) {
            addCriterion("AppinfoID =", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidNotEqualTo(Long value) {
            addCriterion("AppinfoID <>", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidGreaterThan(Long value) {
            addCriterion("AppinfoID >", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("AppinfoID >=", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidLessThan(Long value) {
            addCriterion("AppinfoID <", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidLessThanOrEqualTo(Long value) {
            addCriterion("AppinfoID <=", value, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidIn(List<Long> values) {
            addCriterion("AppinfoID in", values, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidNotIn(List<Long> values) {
            addCriterion("AppinfoID not in", values, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidBetween(Long value1, Long value2) {
            addCriterion("AppinfoID between", value1, value2, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andAppinfoidNotBetween(Long value1, Long value2) {
            addCriterion("AppinfoID not between", value1, value2, "appinfoid");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(String value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(String value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(String value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(String value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(String value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(String value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLike(String value) {
            addCriterion("version like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotLike(String value) {
            addCriterion("version not like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<String> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<String> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(String value1, String value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(String value1, String value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andReleaseurlIsNull() {
            addCriterion("releaseurl is null");
            return (Criteria) this;
        }

        public Criteria andReleaseurlIsNotNull() {
            addCriterion("releaseurl is not null");
            return (Criteria) this;
        }

        public Criteria andReleaseurlEqualTo(String value) {
            addCriterion("releaseurl =", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlNotEqualTo(String value) {
            addCriterion("releaseurl <>", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlGreaterThan(String value) {
            addCriterion("releaseurl >", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlGreaterThanOrEqualTo(String value) {
            addCriterion("releaseurl >=", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlLessThan(String value) {
            addCriterion("releaseurl <", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlLessThanOrEqualTo(String value) {
            addCriterion("releaseurl <=", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlLike(String value) {
            addCriterion("releaseurl like", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlNotLike(String value) {
            addCriterion("releaseurl not like", value, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlIn(List<String> values) {
            addCriterion("releaseurl in", values, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlNotIn(List<String> values) {
            addCriterion("releaseurl not in", values, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlBetween(String value1, String value2) {
            addCriterion("releaseurl between", value1, value2, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andReleaseurlNotBetween(String value1, String value2) {
            addCriterion("releaseurl not between", value1, value2, "releaseurl");
            return (Criteria) this;
        }

        public Criteria andChangecontentIsNull() {
            addCriterion("changecontent is null");
            return (Criteria) this;
        }

        public Criteria andChangecontentIsNotNull() {
            addCriterion("changecontent is not null");
            return (Criteria) this;
        }

        public Criteria andChangecontentEqualTo(String value) {
            addCriterion("changecontent =", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentNotEqualTo(String value) {
            addCriterion("changecontent <>", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentGreaterThan(String value) {
            addCriterion("changecontent >", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentGreaterThanOrEqualTo(String value) {
            addCriterion("changecontent >=", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentLessThan(String value) {
            addCriterion("changecontent <", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentLessThanOrEqualTo(String value) {
            addCriterion("changecontent <=", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentLike(String value) {
            addCriterion("changecontent like", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentNotLike(String value) {
            addCriterion("changecontent not like", value, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentIn(List<String> values) {
            addCriterion("changecontent in", values, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentNotIn(List<String> values) {
            addCriterion("changecontent not in", values, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentBetween(String value1, String value2) {
            addCriterion("changecontent between", value1, value2, "changecontent");
            return (Criteria) this;
        }

        public Criteria andChangecontentNotBetween(String value1, String value2) {
            addCriterion("changecontent not between", value1, value2, "changecontent");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNull() {
            addCriterion("adminid is null");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNotNull() {
            addCriterion("adminid is not null");
            return (Criteria) this;
        }

        public Criteria andAdminidEqualTo(Long value) {
            addCriterion("adminid =", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotEqualTo(Long value) {
            addCriterion("adminid <>", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThan(Long value) {
            addCriterion("adminid >", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThanOrEqualTo(Long value) {
            addCriterion("adminid >=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThan(Long value) {
            addCriterion("adminid <", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThanOrEqualTo(Long value) {
            addCriterion("adminid <=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidIn(List<Long> values) {
            addCriterion("adminid in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotIn(List<Long> values) {
            addCriterion("adminid not in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidBetween(Long value1, Long value2) {
            addCriterion("adminid between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotBetween(Long value1, Long value2) {
            addCriterion("adminid not between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeIsNull() {
            addCriterion("creatertime is null");
            return (Criteria) this;
        }

        public Criteria andCreatertimeIsNotNull() {
            addCriterion("creatertime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatertimeEqualTo(Date value) {
            addCriterion("creatertime =", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeNotEqualTo(Date value) {
            addCriterion("creatertime <>", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeGreaterThan(Date value) {
            addCriterion("creatertime >", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeGreaterThanOrEqualTo(Date value) {
            addCriterion("creatertime >=", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeLessThan(Date value) {
            addCriterion("creatertime <", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeLessThanOrEqualTo(Date value) {
            addCriterion("creatertime <=", value, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeIn(List<Date> values) {
            addCriterion("creatertime in", values, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeNotIn(List<Date> values) {
            addCriterion("creatertime not in", values, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeBetween(Date value1, Date value2) {
            addCriterion("creatertime between", value1, value2, "creatertime");
            return (Criteria) this;
        }

        public Criteria andCreatertimeNotBetween(Date value1, Date value2) {
            addCriterion("creatertime not between", value1, value2, "creatertime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}